package com.cs.framework.web.view;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.cs.framework.core.context.Application;

/**
 * 视图接口
 * 
 * @author hedongzhou
 * 
 */
public interface View {

	/**
	 * 初始化
	 * 
	 * @param application
	 *            应用上下文
	 */
	public void init(Application application);

	/**
	 * 渲染视图
	 * 
	 * @param request
	 * @param response
	 * @param viewInfo
	 * @return
	 */
	public ViewInfo render(HttpServletRequest request, HttpServletResponse response, ViewInfo viewInfo);

}
